package com.zw.test.jdk15;


/*
 *
 * 需要指定Dog的子类有哪些
 * */
public sealed class Dog extends Animal permits SmallDog {

    @Override
    public void eat() {
        super.eat();
    }
}
